with open('story.txt') as story:
    con=0
    cha=0
    lines=0
    for line in story:
        lines=lines+1
        words=list(line.split())
        cha=cha+len(words)
        for word in line:
            con=con+1
    print('The file contains',con,'characters,',cha,'words and',lines,'lines')
                
